package com.xinruke.hostels.central.manage.interfaces.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @ClassName OrganizationAddDTO
 * @CreateDate 2019/6/13
 * @Author FengXinQiang
 * @Version V1.0.0.0
 * @Decription 组织架构添加请求
 */
@ApiModel("组织架构添加请求")
@Data
public class OrganizationAddDTO {

    /**
     * 名称
     */
    @ApiModelProperty(value = "名称",required = true)
    @NotBlank(message = "名称不能为空")
    @Size(max = 20,message = "长度不能超过20")
    private String mingcheng;

    /**
     * 描述
     */
    @ApiModelProperty("描述")
    @Size(max = 20,message = "长度不能超过20")
    private String miaoshu;

    /**
     * 排列顺序
     */
    @ApiModelProperty(value = "排列顺序",required = true)
    @NotNull(message = "排列顺序不能为空")
    private Integer pailieshunxu;



    /**
     * 父机构id
     */
    @ApiModelProperty(value = "父机构id,0为root节点",required = true)
    @NotNull(message = "父机构不能为空")
    private Integer fujigouId ;




}
